package mms

class FoodRetail {

//    static hasMany = []
//    static belongsTo = []
//    static transients = []
    String name = ""
    String specifications= ""
    Float amount
    String  purchasetime= ""
    String pushintime= ""
    String supplier= ""
    String contactsupplier= "" //  供货商电话
    String consistent= ""
    String acceptpeople= ""
    RestaurantCompany enterprise

 Date dateCreated //日期
//  <name>韭黄</name>
//    <specifications>斤</specifications>
//    <amount>2</amount>
//    <purchasetime>2011-04-01</purchasetime>
//    <supplier>天启蔬菜配送公司</supplier>
//    <contactsupplier>13572282567</contactsupplier>
//    <consistent>是</consistent>
//    <acceptpeople>王婷</acceptpeople>
//    <enterprise>灿烂阳光酒店</enterprise>
//    <pushintime>2011-04-14 9:40:16</pushintime>


//    table 'xedu_article'
//    sort  lastTime
    static mapping = {
    }
    //blank 
    //email
    //inList
    //matches 
    //nullable 
    //size
    //unique
    //url 
    static constraints = {
        name(blank:false)
        specifications(blank:true)
        amount()
        purchasetime(blank:true)
        pushintime(blank:true)
        supplier(blank:true)
        contactsupplier(blank:true)
        consistent(blank:true)
        acceptpeople(blank:true)
        enterprise(nullable: true)
        dateCreated()
    }

    String toString() { 
        "${name}"
    } 
}
